package com.express.sys.mapper;

import com.express.entity.Role;
import com.express.entity.RolePermission;
import com.express.service.GenericDao;

import java.util.List;
import java.util.Map;

/**
 * 角色Dao 接口
 * 
 * @author zhouling
 * @since 2018年7月5日 上午11:55:59
 **/
public interface RoleMapper extends GenericDao<Role, String> {

    int deleteByPrimaryKey(int[] paramArrayOfInt);

    int insert(Role paramRole);


    int insertSelective(Role paramRole);

    Role selectByPrimaryKey(Integer paramInteger);


    int updateByPrimaryKeySelective(Role paramRole);

    int updateByPrimaryKey(Role paramRole);

    List<Role> selectPage();

    List<Role> checkCode(Role paramRole);

    List<RolePermission> getRPermission(Integer paramInteger);

    void delRPermission(Integer paramInteger);

    void setRPermission(RolePermission paramRolePermission);

    List<Map<String, Object>> getRolePermission(Integer paramInteger);

}